﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.Data.Linq.Mapping;
using OnlineVideos.Common;


namespace OnlineVideos.Data
{
    [SQLite.Table("ShowLinks"), ConditionType("ShowLinks", "DeleteCondition")]
    public class ShowLinks:INavigationContext
    {

        [SQLite.PrimaryKey, SQLite.AutoIncrement]
        public int LinkID
        {
            get;
            set;
        }

         [SQLite.Column("ShowID"), ConditionType("ShowID", "PrimaryCondition")]
        public int ShowID
        {
            get;
            set;
        }

       [SQLite.Column("Title")]
        public string Title
        {
            get;
            set;
        }

         [SQLite.Column("LinkUrl")]
        public string LinkUrl
        {
            get;
            set;
        }
        [SQLite.Column("Rating")]
        public double Rating
        {
            get;
            set;
        }

       [SQLite.Column("IsFavourite")]
        public bool IsFavourite
        {
            get;
            set;
        }
      [ConditionType("LinkOrder", "SecondaryCondition")]
      [SQLite.Column("LinkOrder")]
        public int LinkOrder
        {
            get;
            set;
        }
        [ConditionType("LinkType", "ThirdCondition")]
        [SQLite.Column("LinkType")]
        public string LinkType
        {
            get;
            set;
        }
        [SQLite.Column("UrlType")]
        public string UrlType
        {
            get;
            set;
        }
        [SQLite.Column("ClientShowUpdated")]
        public DateTime ClientShowUpdated
        {
            get;
            set;

        }
         [SQLite.Column("IsHidden")]
        public bool IsHidden
        {
            get;
            set;
        }
        [SQLite.Column("ClientPreferenceUpdated")]
        public DateTime ClientPreferenceUpdated
        {
            get;
            set;

        }
        [SQLite.Column("RatingFlag")]
        public int RatingFlag
        {
            get;
            set;

        }

         [SQLite.Column("Description")]
        public string Description
        {
            get;
            set;

        }
    
        private string _songPlay;
          [SQLite.Ignore]
        public string Songplay
        {
            get { return _songPlay; }
            set { _songPlay = value; }

        }
        private string _ringtonedetails;
          [SQLite.Ignore]
        public string RingToneDetails
        {
            get { return _ringtonedetails; }
            set { _ringtonedetails = value; }

        }

        private string _ContextRemoveShow;
           [SQLite.Ignore]
             public string ContextRemoveShow
        {
            get { return _ContextRemoveShow; }
            set { _ContextRemoveShow = value; }

        }

             private ImageSource _downloadedimage;
            [SQLite.Ignore]
             public ImageSource DownloadedImage
             {
                 get { return _downloadedimage; }
                 set { _downloadedimage = value; }

             }

    }
}
